import { http } from "@/utils/http";
import type { Request, Response } from "@/api";
import type { Cat, Dog } from "@/api/demo";

const service = "demo";

/** 示例接口 @DaoDao POST /api/demo */
export async function demo(request: Request<Cat>): Promise<Response<Dog>> {
  return http.post<Request<Cat>, Response<Dog>>(`${service}/api/demo`, { data: request });
}
